package cn.csdj.sism.service;

import cn.csdj.sism.pojo.Accommodation;
import cn.csdj.sism.pojo.Class;
import cn.csdj.sism.pojo.Consultant;
import cn.csdj.sism.pojo.Employee;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.HashMap;
import java.util.List;
/**
 * EmployeeService接口
 * @author 谭世豪
 * 2023/4/10
 */

public interface EmployeeService {
    /**
     * 添加
     * @param employee
     * @return
     */
    public int insert(Employee employee);
    /**
     * 按id删除
     * @param id
     * @return
     */
    public int deleteById(Integer id);
    /**
     * 查询全部
     * @return
     */
    public List<Employee> selectAll();
    /**
     * 按id查询
     * @param id
     * @return
     */
    public Employee selectById(Integer id);

    /**
     * 修改
     * @param employee
     * @return
     */
    public int update(Employee employee);
    /**
     * 分页查询
     * @param current
     * @param PageSize
     * @return
     */
    public IPage<Employee> selectPages(Integer current, Integer PageSize);
    /**
     * 按条件分页查询
     * @param chaxun
     * @return
     */
    IPage<Employee> selectPagesByChaXun(HashMap chaxun);
}
